from aiogram import Dispatcher

from recruit_bot.api.requests import Requests
from recruit_bot.core.config import load_api_config


def init_dependencies(dp: Dispatcher) -> None:
    api = load_api_config()
    dp.workflow_data.update(
        {
            'api_url': f'{api.schema}://{api.host}:{api.port}/api',
            'requests': Requests()
        }
    )
